home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!spd!jmccarty
- From: jmccarty@spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.lang.c
- Subject: Re: const char??
- Date: 20 Feb 1996 01:25:28 GMT
- Organization: DSC Communications Corporation, Plano, Texas USA
- Message-ID: <4gb7u8$p5o@sun001.spd.dsccc.com>
- References: <31287436.1235873@news.inforamp.net>
- NNTP-Posting-Host: aplo139.spd.dsccc.com
-
- In article <31287436.1235873@news.inforamp.net>,
- Danny Heuman <dsheuman@inforamp.net> wrote:
- )What is a const char? I am getting an error at compile time stating
- )that it can not convert an int to a const char. I'm using strcpy.
- )
- )
- )Danny Heuman
- )dsheuman@inforamp.net
-
-
- Please post a little code. This is not much to go on.
-
- "const" means that the code is not permitted to change the object at run
- time (after perhaps an initial assignment).
-
- Mike
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-